import {Base} from '../../utils/base.js';
class Model extends Base{
  constructor(){
    super();
  }

  // 获取列表
  getList(data,callback) {
    this.request({
      url: '/news',
      data,
      success: function (res) {
        callback && callback(res)
      }
    })
  }

   // 获取列表
   getInfo(id,callback) {
    this.request({
      url: '/news/'+id,
      success: function (res) {
        callback && callback(res)
      }
    })
  }

}
export{Model}